package cn.easybuy.service.impl;

import java.util.List;

import cn.easybuy.dao.CarDao;
import cn.easybuy.dao.impl.CarDaoImpl;
import cn.easybuy.entity.Car;
import cn.easybuy.service.CarService;

public class CarServiceImpl implements CarService{
	CarDao carDao=new CarDaoImpl();
	@Override
	public int saveProduct(Car car) {
		return carDao.saveProduct(car);
	}

	@Override
	public int updataProduct(Car car) {
		return carDao.updataProduct(car);
	}

	@Override
	public List<Car> getCarsByName(String name) {
		return carDao.getCarsByName(name);
	}

	@Override
	public List<Car> getCarsAll() {
		return carDao.getCarsAll();
	}

	@Override
	public int delProduct(String name) {
		return carDao.delProduct(name);
	}

	@Override
	public int deleteCar() {
		return carDao.deleteCar();
	}

}
